<?php
/* SVN FILE: $Id$ */
/* TcAnchoDeBanda Test cases generated on: 2009-06-28 19:06:08 : 1246234148*/
App::import('Model', 'TcAnchoDeBanda');

class TcAnchoDeBandaTestCase extends CakeTestCase {
	var $TcAnchoDeBanda = null;
	var $fixtures = array('app.tc_ancho_de_banda', 'app.tc_contrato');

	function startTest() {
		$this->TcAnchoDeBanda =& ClassRegistry::init('TcAnchoDeBanda');
	}

	function testTcAnchoDeBandaInstance() {
		$this->assertTrue(is_a($this->TcAnchoDeBanda, 'TcAnchoDeBanda'));
	}

	function testTcAnchoDeBandaFind() {
		$this->TcAnchoDeBanda->recursive = -1;
		$results = $this->TcAnchoDeBanda->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('TcAnchoDeBanda' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor ',
			'precio'  => 'Lorem ipsum dolor ',
			'created'  => '2009-06-28',
			'modified'  => '2009-06-28',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>